import { ref, computed } from "vue";
import { defineStore } from "pinia";

interface useStore {
	user: {
		id: number;
		name: string;
		imageUrl: string;
		organizationId: number;
		token: string;
	};
}
export const useStore = defineStore("counter", {
	state: (): useStore => {
		return {
			// 所有这些属性都将自动推断其类型
			user: { id: 0, name: "", imageUrl: "", organizationId: 1, token: "" },
		};
	},
});
